<%@page import="edu.cmu.aes.project2.security.UISecurityUtil"%>
<%
	String userName = UISecurityUtil.getUserName(request);
	String title = (String) request.getAttribute("title");
	if (title == null)
		title = "Untitled";
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><%=title%>
</title>
<link href="static/main.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="static/jquery-1.6.4.min.js"></script>
</head>
<body>

	<h1>
		ACME Bike <span class="tagline"></span>
	</h1>
	<div id="bread">
		<%
			if (userName == null) {
		%>	
		&#091;<a href="login.jsp">Login</a>&#093;
		<%
			} else {
		%>
		Login as <font color="#FFFFFF"><%=userName%></font>
		&nbsp;&#091;<a href="invoice.jsp">View Invoices</a>&#093; 
		&nbsp;&#091;<a href="logout.jsp">Log out</a>&#093;
		<%
			}
		%>
	</div>